package com.songcha.module_vip.ui.activity.vip_recharge

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_business.mvvm.BusinessRepository
import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseIntDataBean
import com.songcha.module_vip.api.VipApiManager
import com.songcha.module_vip.bean.vip.CreateAlipayVipRechargeOrderDataBean
import com.songcha.module_vip.bean.vip.CreateWxVipRechargeOrderDataBean
import com.songcha.module_vip.bean.vip.VipRechargePriceDataBean
import io.reactivex.Observable

class VipRechargeRepository:BusinessRepository() {
    fun createVipRechargeOrderWx(id:Int) :Observable<CreateWxVipRechargeOrderDataBean>{
        return VipApiManager.api.createVipRechargeOrderWx(id)
    }

    fun createVipRechargeOrderAlipay(id:Int) :Observable<CreateAlipayVipRechargeOrderDataBean>{
        return VipApiManager.api.createVipRechargeOrderAlipay(id)
    }

    fun getVipRechargePriceList(): Observable<VipRechargePriceDataBean> {
        return VipApiManager.api.getVipRechargePriceList()
    }

    fun queryVipRechargeOrderState(orderId:String):Observable<BaseIntDataBean>{
        return VipApiManager.api.queryVipRechargeOrderState(orderId)
    }

}